package com.liyuhan.shopping.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.liyuhan.shopping.controller.ShoppingCarController;
import com.liyuhan.shopping.service.ShoppingCarService;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("shopping_cart")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShoppingCart {
    @TableId
    private int id;
    private int uid;
    private int gid;
    private int gcount;
    public ShoppingCart(int uid, int gid, int gcount){
        this.uid = uid;
        this.gid = gid;
        this.gcount = gcount;
    }
}
